layui.config({
    base: '../',
    version: "2.8.2"
}).extend({
    'layuiFastTable': 'layuiFastTable',
    'layuiFastHelper': 'layuiFastHelper',
});

layui.use(['jquery'], function () {
    let $ = layui.jquery;
    // 全局提示事件
    $(document).on('mouseenter', '.layer-tips', function () {
        var tips = $(this).data('tips') || $(this).data('title') || $(this).attr('title');
        $(this).data('tips-index', layer.tips(tips, this, {
            tips: 1
        }));
    });
    $(document).on('mouseleave', '.layer-tips', function () {
        layer.close($(this).data('tips-index'))
    });
});